<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const abc = Symbol();

      class User {
        pv = "public variable";
        static sv = "static variable";
        constructor() {
          this[abc] = "312";
        }
        get() {
          console.log("走get");
        }
        show() {
          console.log("show ");
        }
        set() {
          console.log("zou set");
        }
      }
      const u = new User();
      u.xx = "x";
      u.set();
      u.show();
      console.log(u[abc]);
      console.log(u.pv);
    </script>
  </body>
</html>
